package org.edu.modules.sbzc.floor.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import java.math.BigDecimal;
import java.sql.Date;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-修理记录表
 */
@TableName("ve_sbzc_jzw_maintain")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="修理记录表对象", description="ve_sbzc_jzw_maintain")
public class VeSbzcJzwMaintain extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "建筑物id")
    private Integer jzwId;

    @TableField
    @ApiModelProperty(value = "楼层id")
    private Integer floorId;

    @TableField
    @ApiModelProperty(value = "房间id")
    private Integer roomId;

    @TableField
    @ApiModelProperty(value = "修缮开始日期")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
    private Date startDate;

    @TableField
    @ApiModelProperty(value = "修缮结束日期")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
    private Date endDate;

    @TableField
    @ApiModelProperty(value = "修缮内容")
    @Length(max = 500)
    private String content;

    @TableField
    @ApiModelProperty(value = "修缮经费 元")
    private BigDecimal money;

    @TableField
    @ApiModelProperty(value = "修缮单位")
    @Length(max = 255)
    private String org;

    @TableField
    @ApiModelProperty(value = "经费来源码JFLY")
    private Integer jfSource;

    @TableField
    @ApiModelProperty(value = "经办人号")
    @Length(max = 32)
    private String jbUser;

    @TableField
    @ApiModelProperty(value = "经办人号")
    @Length(max = 50)
    private String jbUserName;

    @TableField
    @ApiModelProperty(value = "修缮说明")
    @Length(max = 500)
    private String remark;
}
